#include "StompedReality/Core/OS/SystemMessageProcessor.h"
StompedReality::Core::SystemMessageProcessor::SystemMessageProcessor( ) :
  StompedReality::GameAccess( )
{
}

StompedReality::Core::SystemMessageProcessor::~SystemMessageProcessor( )
{
}

void StompedReality::Core::SystemMessageProcessor::AddListener( StompedReality::Core::SystemMessageListener* listener )
{
  this->m_Listeners.push_back( listener );
}

void StompedReality::Core::SystemMessageProcessor::ProcessMsg( StompedReality::Core::SystemMessage* msg ) {
  for (SysMsgListeners::iterator iter = this->m_Listeners.begin( );
       iter != this->m_Listeners.end( );
       ++iter)
  {
    (*iter)->ProcessMessage( msg );
  }
}